<div class="container">
  <h1>index()</h1>
  <p class="signature">function index(): void</p>
  <h2>Description</h2>
  <div class="description">
    <p>
      Renders the (default) homepage for public access. This method loads the 'trongate_pages' module and calls its 'display()' method to render the homepage.
    </p>
  </div>
  <h2>Parameters</h2>
  <table>
    <thead>
      <tr>
        <th>Parameter</th>
        <th>Type</th>
        <th>Description</th>
        <th>Default</th>
        <th>Required</th>
      </tr>
    </thead>
    <tbody>
      <!-- This method does not take any parameters -->
      <tr>
        <td colspan="5">This method does not take any parameters.</td>
      </tr>
    </tbody>
  </table>
  <h2>Return Value</h2>
  <table>
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>void</td>
        <td>This method does not return any value.</td>
      </tr>
    </tbody>
  </table>
  <h2>Example Usage #1</h2>
  <p>The code below shows the current implementation of the Welcome module's index method.</p>
  <div class="example">
    <pre> /**
 * Renders the (default) homepage for public access.
 *
 * @return void
 */
public function index(): void {
  $this->module('trongate_pages');
  $this->trongate_pages->display();
}</pre>
  </div>
  <h2>Example Usage #2</h2>
  <p>The code sample below demonstrates how to render a simple, 'hello world' message when the application's (default) homepage is loaded.</p>
  <div class="example">
    <pre> /**
 * Renders the (default) homepage for public access.
 *
 * @return void
 */
public function index(): void {
  echo 'hello world';
}</pre>
  </div>
<h2>Example Usage #3</h2>
  <p>The code sample below demonstrates how a website template, with corresponding view file, could be rendered when the application's (default) homepage is loaded.</p>
  <div class="example">
    <pre> /**
 * Renders the (default) homepage for public access.
 *
 * @return void
 */
public function index(): void {
  $data['view_module'] = 'welcome';
  $data['view_file'] = 'homepage_content';
  $this->template('public', $data);
}</pre>
  </div>
</div>
